<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Data-co-pilot 注册页面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }

        .register-container {
            width: 300px;
            margin: 100px auto;
            padding: 20px;
            background: #fff;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            border-radius: 4px;
        }

        .register-container h2 {
            text-align: center;
            color: #333;
            margin-bottom: 20px;
        }

        .input-group {
            margin-bottom: 15px;
        }

        .input-group label {
            display: block;
            margin-bottom: 5px;
        }

        .input-group input[type="text"],
        .input-group input[type="password"],
        .input-group input[type="tel"] {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }

        .input-group input[type="text"]:focus,
        .input-group input[type="password"]:focus,
        .input-group input[type="tel"]:focus {
            outline: none;
            border-color: #5cb85c;
            box-shadow: 0 0 8px rgba(92, 184, 92, 0.2);
        }

        .register-button {
            width: 100%;
            padding: 10px;
            background: #5cb85c;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .register-button:hover {
            background: #4cae4c;
        }
    </style>
</head>
<body>
<div class="register-container">
    <h2>Welcome to Data-co-pilot</h2>
    <form method="post" action="/register/">
        <div class="input-group">
            <label for="phone">请输入手机号</label>
            <input type="tel" id="phone" placeholder="Phone Number" name="phone">
        </div>
        <div class="input-group">
            <label for="username">设置用户名</label>
            <input type="text" id="username" placeholder="Username" name="user">
        </div>
        <div class="input-group">
            <label for="password">设置密码</label>
            <input type="password" id="password" placeholder="Password" name="pwd">
        </div>
        <div class="input-group">
            <label for="repassword">重新输入密码</label>
            <input type="password" id="repassword" placeholder="Password" name="repwd">
        </div>
        <button type="submit" class="register-button">注册</button>
        <span style="color: red">{{error}}</span>
    </form>
</div>
</body>
</html>